package com.hncj2;

public class test1 {
    public static void main(String[] args) {

//        Swiming s=()-> System.out.println("l123");
//        go(s);

        go(()-> System.out.println("l123"));
    }
    public static void go(Swiming a){
        a.swim();
    }

}
interface Swiming{
    void swim();
}
